<%@ page import="com.bafa.objects.season.Season" %>
<%@ page import="com.bafa.objects.season.Division" %>
<%@ page import="com.bafa.objects.team.Team" %>
<%@ page import="com.bafa.objects.team.TeamSeasonStats" %>
<%@ page import="com.bafa.objects.team.TeamStats" %>
<%@ page import="com.bafa.objects.player.*" %>
<%@ page import="com.bafa.objects.*" %>
<%@ page import="com.bafa.middle.*" %>
<%@ page import="com.bafa.front.presentationbeans.*" %>
<%@ page import="java.util.*" %>

  <% TeamBean team = (TeamBean)request.getAttribute("Team");   %>
  
<% SeasonBean season = (SeasonBean)session.getAttribute("THISSEASON");%>
<%SiteBean siteBean = (SiteBean)session.getAttribute("SITEBEAN");%>
<script  src="script/niftycube.js" type="text/javascript" ></script>
	<script>
	NiftyLoad=function(){
	     

 Nifty("ul#teamdetails h3","top");
Nifty("ul#teamdetails div","bottom same-height");



}
</script>

<style>

	
	ul#teamdetails,ul#teamdetails li{margin:0;padding:0;list-style:none}
		ul#teamdetails li{float:left;width:255px;margin:0 10px 10px 0}
		ul#teamdetails h3{font: bold  Verdana,sans-serif;
		    text-transform:uppercase;margin:0px;padding: 5px 0 3px;text-align:center}
		ul#teamdetails p{margin:0;padding:5px 8px 15px}
		ul#teamdetails div{background:#<%=siteBean.getDivbackground()%>}
	li#teamdetails div{border:2px solid #D2D2D2}
</style>


<form action="updatedetails.bafa" name="details" method="post">
<ul id="teamdetails">
  	  		<li id="teamdetails"><h3 class="avlh">Team Details</h3>
  	      
    <div>

 	
 	<input type="hidden" name="teamId" value="<%=team.getId()%>"/>
     <table width="252" border="0" class="bafatablesmall">
      
       <tr >
         <td ><strong>First Contact </strong></td>
         <td ><input type="text" name="contactName1" value="<%=team.getPrimaryContactName()%>"/></td>
       </tr>
       <tr >
         <td ><strong>First Contact Email </strong></td>
         <td><input type="text" name="contactEmail1" value="<%=team.getPrimaryContactEmail()%>"/></td>
       </tr>
       <tr>
         <td ><strong>First Contact Tel </strong></td>
         <td ><input type="text" name="contactTel1" value="<%=team.getPrimaryContactTel()%>"/></td>
       </tr>
       <tr >
         <td ><strong>Second Contact </strong></td>
         <td ><input type="text" name="contactName2" value="<%=team.getSecondaryContactName()%>"/></td>
       </tr>
       <tr >
         <td ><strong>Second Contact Email </strong></td>
         <td ><input type="text" name="contactEmail2" value="<%=team.getSecondaryContactEmail()%>"/></td>
       </tr>
       <tr>
         <td ><strong>Second Contact Tel </strong></td>
         <td ><input type="text" name="contactTel2" value="<%=team.getSecondaryContactTel()%>"/></td>
       </tr>
       <tr>
         <td ><strong>Shirt Colour </strong></td>
         <td ><input type="text" name="shirtColour" value="<%=team.getShirtColour()%>"/></td>
       </tr>
       <tr>
		<td ><strong>Money Owed </strong></td>
		<td ><input type="text" name="money" value="<%if(team.getMoneyOwed()>0){%><%=team.getMoneyOwed()%><%}%>"/></td>
       </tr>
 	  <tr >
         <td colspan="2"><input class='leftbutton' type='submit' name='submit' value='Update' /></td>
 		</tr>
     </table>
	
  </div>
  
  </li>
  </ul>
  </form>